const routes = [
  {
    path: '/',
    name: '全局根路径',
    redirect: '/landing',
    show: false,
  },
  {
    path: '/landing',
    name: '登录活动',
    show: false,
    component: () => import('../activities/Landing.vue'),
  },
  {
    path: '/main',
    name: '主活动',
    show: false,
    component: () => import('../activities/Main.vue'),
    children: [
      {
        path: '',
        redirect: '/main/home',
        show: false,
      },
      {
        path: '/main/home',
        name: '主页',
        icon: 'mdi mdi-home',
        show: true,
        component: () => import('../views/Home.vue'),
        children: [
          {
            path: '',
            redirect: '/main/home/demos',
            show: false,
          },
          {
            path: '/main/home/demos',
            name: '演示',
            show: true,
            component: () => import('../views/Home/Demos.vue'),
          },
        ],
      },
      {
        path: '/main/settings',
        name: '设置',
        icon: 'mdi mdi-cog',
        show: true,
        component: () => import('../views/Settings.vue'),
      },
    ],
  },
  {
    path: '/about',
    name: '关于活动',
    show: false,
    component: () => import('../activities/About.vue'),
    children: [
      {
        path: '/about',
        name: '关于',
        icon: 'mdi mdi-information-outline',
        show: true,
        component: () => import('../views/About.vue'),
      },
    ],
  },
];
export { routes };
